package com.taojie.graduation.service.api;

import com.taojie.graduation.domain.Category;
import com.taojie.graduation.utils.Result;

import java.util.List;

public interface CategoryService {
    List<Object> findAll();

    Result addCategory(Category category);

    Result deleteById(Integer id);

    Result updateById(Category category);

    Result findById(Integer id);

    Result findByProdId(Integer id);

    Result addByProdId(Integer id, List<Integer> ids);

    Result deleteByProdId(Integer id);

    Result updateByProdId(Integer id, List<Integer> ids);
}
